package org.stwy.pro.safe;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.rap.frame.web.BaseController;

/*
 * 物业安全状况 控制类
 */
/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-9 22:27:09
*<p></p>
*
*@参与人：Rap.Codegen
*/

@Controller
@RequestMapping(value = "/pro/safe")
public class SafeController extends BaseController<SafeEntity> {

	public SafeController() {
		setResourceIdentity("stwy:pro:safe");
	}
	private SafeService getService(){
		return (SafeService)super.baseService;
	}

	@RequestMapping(method = RequestMethod.GET)
	public String view(Model model) {
		super.assertHasViewPermission();
		return "stwy/pro/safe/safe_main";
	}

	@RequestMapping(value = "/select")
	public String select(Model model, String callback) {
		model.addAttribute("callback", callback);
		return "stwy/pro/safe/safe_select";
	}
}
